/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.googlecode.datawander.codecompiler;

import java.io.File;
import java.io.FileFilter;

/**
 * FileFilter for files ended for ".java" postfiks, and directioris (but no .svn)
 * @author Marcin Stachniuk
 */
public class JavaFileFilter implements  FileFilter {

    public JavaFileFilter() {
    }


    @Override
    public boolean accept(File f) {
        if((f.isFile() && f.getName().endsWith(".java")) || 
                (f.isDirectory() && !f.getName().equals(".svn"))) {
            return true;
        }
        return false;
    }

}
